package cz.apnetis.gwt.client;

import java.util.Date;

import com.google.gwt.i18n.client.DateTimeFormat;

public class ShortDateStringConverter implements StringConverter<Date> {

  @Override
  public final Date stringToValue(final String value) {
    return DateTimeFormat.getShortDateFormat().parse(value);
  }

  @Override
  public final String valueToString(final Date value) {
    return DateTimeFormat.getShortDateFormat().format(value);
  };
}
